package com.hxx.day1.controller;

import com.hxx.day1.domain.Person;
import com.hxx.day1.service.PersonService;
import com.hxx.day1.service.impl.PersonServiceImpl;

public class PersonController {
    private PersonService personService = new PersonServiceImpl();

    public void save(Person person){
        personService.save(person);
    }
    public void delete(Person person){
        personService.delete(person);
    }
    public void update(Person person){
        personService.update(person);
    }
    public void findAll(){
        personService.findAll();
    }
}
























